<?php
$hasil = "";
?>
<head>
<!--[if lt IE 9]>
<script src="asset/js/html5.js"></script>
<script src="asset/js/PIE.js"></script>
<![endif]-->
<!-- jquerytools -->
<script src="<?php echo base_url();?>asset/js/jquery.tools.min.js"></script>
<script src="<?php echo base_url();?>asset/js/jquery.ui.min.js"></script>

<!--[if lte IE 9]>
<link rel="stylesheet" media="screen" href="asset/css/ie.css" />
<script type="text/javascript" src="asset/js/ie.js"></script>
<![endif]-->



</head>
		<header><h2><?php echo 'Test Koneksi dengan HP / Modem' ?></h2></header>
		

<p>Klik tombol di bawah ini untuk cek koneksi dengan HP</p>

<form method="post" action="<?php echo base_url();?>settings/konfigurasi/2/submit">
<input type="submit" name="submit" value="CEK KONEKSI"></td></tr>
</form>

<?php
$id = $this->uri->segment(4);
//if ($_POST['submit'])
if ($id == "submit")
{
   echo "<b>Status :</b><br>";
   echo "<hr>Modem/HP 1<br>";
   passthru("gammu -s 0 -c gammurc identify", $hasil);
   echo "<pre>";
   passthru("gammu -s 0 -c gammurc identify", $hasil);
   echo "</pre>";
   echo "<hr>Modem/HP 2<br>";
   echo "<pre>";
   passthru("gammu -s 1 -c gammurc identify", $hasil);
   echo "</pre>";
   echo "<hr>";

}else{
	//echo "noy";
}
?> 